package com.youlai.boot.system.service;

import com.youlai.boot.system.model.entity.SysDianciFinishedRetrospect;
import com.youlai.boot.system.model.form.SysDianciFinishedRetrospectForm;
import com.youlai.boot.system.model.query.SysDianciFinishedRetrospectQuery;
import com.youlai.boot.system.model.vo.SysDianciFinishedRetrospectVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 成品追溯服务类
 *
 * @author liwenbing
 * @since 2025-04-09 23:40
 */
public interface SysDianciFinishedRetrospectService extends IService<SysDianciFinishedRetrospect> {

    /**
     *成品追溯分页列表
     *
     * @return
     */
    IPage<SysDianciFinishedRetrospectVO> getSysDianciFinishedRetrospectPage(SysDianciFinishedRetrospectQuery queryParams);

    /**
     * 获取成品追溯表单数据
     *
     * @param id 成品追溯ID
     * @return
     */
     SysDianciFinishedRetrospectForm getSysDianciFinishedRetrospectFormData(Long id);

    /**
     * 新增成品追溯
     *
     * @param formData 成品追溯表单对象
     * @return
     */
    boolean saveSysDianciFinishedRetrospect(SysDianciFinishedRetrospectForm formData);

    /**
     * 修改成品追溯
     *
     * @param id   成品追溯ID
     * @param formData 成品追溯表单对象
     * @return
     */
    boolean updateSysDianciFinishedRetrospect(Long id, SysDianciFinishedRetrospectForm formData);

    /**
     * 删除成品追溯
     *
     * @param ids 成品追溯ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteSysDianciFinishedRetrospects(String ids);

}
